package kotlincode

import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withContext

fun main() = runBlocking {
    val number = getNumber1()
//    val number = getNumber2()
}

suspend fun getUserInfo(): String {
    withContext(Dispatchers.IO) {
        delay(1000L)
    }
    return "LWL"
}

suspend fun getNumber1(): Int {
    withContext(Dispatchers.IO){
        delay(1000L)
    }
    return 1
}

fun getNumber2(): Int {
    return 2
}
